#include <stdio.h>
#include <string.h>

char s1[300], s2[300];  
int n1[300], n2[300], ans[400], ai = 0;
int l1, l2;

int max(int a, int b) { return (a > b) ? a : b; }
int min(int a, int b) { return (a < b) ? a : b; }

int main() {
    scanf("%s%s", s1, s2);
    l1 = strlen(s1);
    l2 = strlen(s2);
    for (int i = 0; i < l1; i++) {
        n1[i] = (s1[l1 - i - 1] - '0');
    }
    for (int i = 0; i < l2; i++) {
        n2[i] = (s2[l2 - i - 1] - '0');
    }
    for (int i = 0; i < l1; i++) {
        for (int j=0;j<l2;j++) {
            ans[j+i]+=n1[i]*n2[j];
            ans[j+i+1]+=ans[j+i]/10;
            ans[j+i]=ans[j+i]%10;
        }
    }
    int ind=l1+l2-1;
    while (ans[ind]==0 && ind>=0) ind--;
    if (ind>=0) {
            for (;ind>=0;ind--)  {
            printf("%d",ans[ind]);
        }
    } else {
        printf("0");
    }
}